﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h3>
            Welcome to Gecko Photos!</h3>
        <p>
            Gecko Photos is a simple photo-sharing website. Any users can browse the photos,
            but only registered users can upload.</p>
        <%if (Request.IsAuthenticated)
          { %>
          <p>Welcome, <b><%: Page.User.Identity.Name %></b>.</p>
        <% }
          else
          { %>
        <p>
            You can log in
            <%: Html.ActionLink("here", "LogOn", "Account") %>. Not a member?
            <%: Html.ActionLink("Register", "Register", "Account")%>
            now!</p>
        <p>
            <% } %>
            <i>Here's whats been happening lately on Gecko Photos</i></p>
        <% Html.RenderPartial("~/Views/Shared/MessagesControl.ascx", ViewData.Model); %>
    </div>
</asp:Content>
